package com.glela.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
public class PerRedPacketVo {
	
	private String title; // 注册奖励创业兔币 红包表中的标题字段
	private Date endTime; // 失效时间
	private Date ownTime; // 拥有时间
	private BigDecimal amount;
	private int id; // 红包id
	private int ownerId; // 红包拥有记录
	private Date usedTime;	//使用时间
	private Date shareFailureTime;		//分享失效时间
	private Date shareTime;    //分享时间 
	private String nickName;
	private Date startTime;
	private String userType; // 根据 giftType 判断
	private int redPacketShareStatus;
	private Date backTime;
	private int isShare;
	private int roleId;
	private int giftType;
    
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
			this.endTime = endTime;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Date getOwnTime() {
		return ownTime;
	}

	public void setOwnTime(Date ownTime) {
		this.ownTime = ownTime;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Date getUsedTime() {
		return usedTime;
	}

	public void setUsedTime(Date usedTime) {
		this.usedTime = usedTime;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Date getShareFailureTime() {
		return shareFailureTime;
	}

	public void setShareFailureTime(Date shareFailureTime) {
		this.shareFailureTime = shareFailureTime;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Date getShareTime() {
		return shareTime;
	}

	public void setShareTime(Date shareTime) {
		this.shareTime = shareTime;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Date getBackTime() {
		return backTime;
	}

	public void setBackTime(Date backTime) {
		this.backTime = backTime;
	}

	public int getGiftType() {
		return giftType;
	}

	public void setGiftType(int giftType) {
		this.giftType = giftType;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public int getIsShare() {
		return isShare;
	}

	public void setIsShare(int isShare) {
		this.isShare = isShare;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		if(null != amount){
			if (amount.compareTo(new BigDecimal(0)) > 0) {
				amount = amount.divide(BigDecimal.valueOf(100));
			}
		}
		this.amount = amount;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(int ownerId) {
		this.ownerId = ownerId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public int getRedPacketShareStatus() {
		return redPacketShareStatus;
	}

	public void setRedPacketShareStatus(int redPacketShareStatus) {
		this.redPacketShareStatus = redPacketShareStatus;
	}

}
